<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>{{content+'_'}}纹身大咖图库</title>
    <meta name="viewport"
          content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="keywords" content="纹身,刺青,纹身师,纹身图片,纹身图案,{{ tags.split('#').join(',') }}">
    <meta name="description" content="{{content}}"/>
    <link href="/css/style.css" rel="stylesheet">
    <script src="/js/dev.min.js"></script>
    <script src="/js/layout.js"></script>
    <script>

        var IMAGES = (''
            //{{each images as v,i}}
            //{{if i!=0}}
        + '|'
            //{{/if}}
        + '{{v}}'
            //{{/each}};
        ).split('|');

        $(document).ready(function () {
            var imageBox = {
                $s: $('#imageBox #slider'),
                max: +'{{images.length}}',
                index: 0,
                pre: function () {
                    if (imageBox.index <= 0)return;
                    imageBox.index--;
                    imageBox.$s.css('left', -imageBox.index * 100 + '%');
                    $('.arrow-right').removeClass('hide');
                    if (imageBox.index == 0)$('.arrow-left').addClass('hide');
                },
                next: function () {
                    if (imageBox.index >= (imageBox.max - 1))return;
                    imageBox.index++;
                    imageBox.$s.css('left', -imageBox.index * 100 + '%');
                    $('.arrow-left').removeClass('hide');
                    if (imageBox.index == (imageBox.max - 1))$('.arrow-right').addClass('hide');
                }
            };

            if (imageBox.max > 1) {
                $('.right-box').click(imageBox.next);
                $('.left-box').click(imageBox.pre);
            } else {
                $('.arrow-right').addClass('hide');
            }

            $('.likeRule>div').click(function () {
                location.href = 'http://www.wenshendaka.com';
            });

            var $dialog = {
                o: $('.window'),
                init: function () {
                    var x = this;
                    $('#downloadImg>div').click(function () {


                        if (navigator.userAgent.match(/mobile/i) == null) {
                            var link = IMAGES[imageBox.index].split('?')[0];
                            window.open(link)
                        } else {
                            x.o.show();
                            var H = $('.shade', x.o).height();
                            var dialog = $('.body', x.o);
                            var h = dialog.height();
                            dialog.css('top', (H - h) / 3);

                            $(x.o).click(function () {
                                x.o.hide();
                            });
                        }

                    });
                    return this;
                }
            }.init();

        })
    </script>
</head>
<body>
<img src="{{images[0]}}" style="display: none">
<nav>
    <div class="flu-main">
        <a href="/"><img src="/img/logo.png" alt="纹身大咖图库"></a>

        <div class="btn-download"></div>
    </div>
</nav>

<div class="window">
    <div class="shade">
        <div class="body">

            <h6>使用电脑打开即可下载<br>高清大图</h6>

            <img src="http://img.meizhanggui.cc/resources/gallary/baidu.jpg"/>

            <p>百度搜索 <strong>纹身大咖图库</strong></p>

            <div class="hr"></div>
            <p>
                {{'<a href="https://www.baidu.com/s?ie=utf-8&wd=%E7%BA%B9%E8%BA%AB%E5%A4%A7%E5%92%96%E5%9B%BE%E5%BA%93">https://www.baidu.com/s?wd=纹身大咖图库</a>'&&''}}
                {{'<br>'&&''}}
                <i>或复制链接到电脑</i>
            </p>

        </div>
    </div>

</div>

<div class="tips">
    <p>Tips : 电脑上百度搜索"纹身大咖图库"可以下载更高清图片哦！</p>
</div>

<div id="main">

    <div class="flu-main">
        <div class="banner"></div>
    </div>

    {{if previous}}
    <div class="flu-main">
        <a class="link" href="detail_{{previous.link}}.html">上一篇: {{previous.title||'无题'}}</a>
    </div>
    {{/if}}

    <div id="details" class="flu-main">

        {{if content}}
        <h1>{{content}}</h1>
        {{/if}}

        {{if tags}}
        <div id="tag">
            {{each tags.split('#') as tag}}
            <span>{{tag}}</span>
            {{/each}}
        </div>
        {{/if}}

        <div id="imageBox">
            <div class="flu-main arrowArea flu-v16-9">
                <div class="left-box vam">
                    <div class="arrow arrow-left hide"></div>
                </div>
                <div class="right-box vam">
                    <div class="arrow arrow-right"></div>
                </div>
            </div>
            <div id="slider">

                {{each images as img}}
                <div class="flu-main flu-v16-9 image"
                     style="background-image:url({{img}}?imageView2/2/w/1400/h/787/format/jpg/q/90)"></div>
                {{/each}}

            </div>
            <div id="downloadImg">
                <div></div>
            </div>
        </div>

        <div class="likeRule flu-main">
            <div>
                <svg version="1.1" id="like" xmlns="http://www.w3.org/2000/svg"
                     xmlns:xlink="http://www.w3.org/1999/xlink"
                     x="0px" y="0px" viewBox="0 0 96 96" enable-background="new 0 0 96 96" xml:space="preserve">
                    <path fill-rule="evenodd" clip-rule="evenodd" fill="#FF1A1A"
                          d="M48,25.4C35.6-3.8,0.2,3,0,36.8c-0.1,18.6,16.8,25.5,28.1,32.9,C39,77,46.8,86.8,48.1,91c1-4.1,9.7-14.2,19.8-21.4C79,61.7,96.1,55.2,96,36.6C95.8,2.7,59.8-2.6,48,25.4z"></path>
                </svg>
            </div>
        </div>
        <div class="likebox">

            {{each like_users as users}}
            <a class="avatar" title="{{ users.nickname }}"
               data-id="{{ users.userId }}"
               style="background-image: url({{users.avatar?(users.avatar + '?imageView2/1/w/30/h/30/format/jpg/q/70') : '/img/def_avatar.jpg'}})">
            </a>
            {{/each}}
        </div>
    </div>

    {{if next}}
    <div class="flu-main">
        <a class="link" href="detail_{{next.link}}.html">下一篇: {{next.title||'无题'}}</a>
    </div>
    {{/if}}
    <div class="flu-main hr"></div>
    <div class="flu-main">
        <h2>- 热门标签 -</h2>
    </div>
    <div class="flu-main tagsLibrary">
        {{each tagsLibrary as tags tagsLabel}}
        <div>
            <span class="tagsLabel">
                <span>{{tagsLabel}}</span>
            </span>
            {{each tags.split('#') as t}}
            {{if t == tag}}
            <span class="tags active">{{t}}</span>
            {{else}}
            <a href="/{{t}}_1.html" class="tags">{{t}}</a>
            {{/if}}
            {{/each}}
        </div>
        {{/each}}
    </div>
    <div class="flu-main hr"></div>
    <div class="flu-main">
        <h2>- 精彩推荐 -</h2>

        <div class="recommend">
            {{each recommend as el}}

            <div class="node">
                <a class="cover" href="/detail_{{el._id}}.html">
                    <h4>{{el.content}}</h4>

                    <p>{{el.tagstring}}</p>
                </a>
                <a class="img" href="/detail_{{el._id}}.html">
                    <img src="{{el.image_urls[0]}}?imageView2/1/w/320/h/320/format/jpg/q/90">
                </a>
            </div>

            {{/each}}
        </div>
    </div>
</div>

<footer>
    <div class="flu-main">
        <div class="content">
            <div class="footer-block">
                <h5>加入我们
                    <small>JOINUS</small>
                </h5>
                <p>hr@utodo.cn</p>
            </div>
            <div class="footer-block">
                <h5>商务合作
                    <small>BUSINESS</small>
                </h5>
                <p>bd@utodo.cn</p>
            </div>
            <div class="footer-info">
                <h6>北京微蜜科技有限公司</h6>

                <p><b>weimiTechnology Ltd.</b>©2014utodo.cn</p>

                <p>京ICP备14052625号</p>
            </div>
        </div>
    </div>
</footer>

<script>

    (function () {
        var bp = document.createElement('script');
        bp.src = '//push.zhanzhang.baidu.com/push.js';
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(bp, s);
    })();

    (function () {
        var _hmt = _hmt || [];
        var hm = document.createElement("script");
        hm.src = "//hm.baidu.com/hm.js?0bb9fe149e6ec763a15c8a5a3e36f4d1";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();

    var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");
    document.write(unescape("%3Cspan id='cnzz_stat_icon_1256682352' style='display:none;'%3E%3C/span%3E%3Cscript  src='" + cnzz_protocol + "s4.cnzz.com/stat.php%3Fid%3D1256682352' type='text/javascript'%3E%3C/script%3E"));

</script>

</body>
</html>